package com.source.multithread.singleton;

/**
 * @Author wengqy
 * @Date 2020/12/25
 */
public class MainTest {
    public static void main(String[] args) {
        for (int i = 1; i <=10 ; i++) {
            new Thread(()->{
                System.out.println(Thread.currentThread().getName()+"------"+SingleTon.getSingleTon().hashCode());
            },String.valueOf(i)).start();
        }
    }
}
